{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">会员支付管理</li>
            <li class=""><a href="{:url('admin/member_pay/add',['member_id'=>input('param.member_id')])}">添加会员支付</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form action="" method="post" class="ajax-form">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">编号</th>
                        <th>币种</th>
                        <th>paypal订单编号</th>
                        <th>系统订单号</th>
                        <th>付款金额</th>
                        <th>会员等级</th>
                        <th>支付时间</th>
                        <th>到期时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {if condition="$data->toArray()['data']"}
                    {foreach name="data" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.currency}</td>
                        <td>{$vo.txn_id}</td>
                        <td>{$vo.order_id}</td>
                        <td>{$vo.gross}</td>
                        <td>{$vo.level}</td>
                        <td>{$vo.pay_time|date="Y-m-d H:i:s",###}</td>
                        <td>{$vo.expire_time|date="Y-m-d H:i:s",###}</td>
                        <td>
                            <a href="{:url('admin/member_pay/edit',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
                            <a href="{:url('admin/member_pay/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    {else/}
                    <tr>
                        <td colspan="15" style="text-align: center;"><i class="fa fa-exclamation-circle"></i>没有数据</td>
                    </tr>
                    {/if}
                    </tbody>
                </table>
                <!--分页-->
                {$page}
                </form>
            </div>
        </div>
    </div>
</div>
{/block}